import request from '@/utils/request'

//11111111
//获取可预约的教室信息的请求
export function getappointmentroom(date,fromtime,totime,pageNum,pageSize) {
  return request({
    url: '/student/getsitebytime',
    method: 'get',
    params: {
      date : date,
      fromtime : fromtime,
      totime : totime,
      pageNum,
      pageSize
    }
  })
}

//学生点击预约按钮的请求
export function appointmentroom(getroomid,date,fromtime,totime) {
  return request({
    url: '/student/yySiteByClassId',
    method: 'get',
    params: {
      //右边的要跟后端参数一样
      jsid : getroomid,
      yyrq : date,
      fromtime : fromtime,
      totime : totime
    }
  })
}

//2222222222
//查看预约请求 获得预约信息及预约人身份
export function seeappointmentmessage(pageNum,pageSize) {
  return request({
    url: '/student/ckyyqk',
    method: 'get',
    params:{
      pageNum,
      pageSize
    }
  })
}

//取消预约请求
export function overappointment(yyid) {
  return request({
    url: '/student/qxyy',
    method: 'get',
    params: {
      yyid : yyid
    }
  })

}

//333333333333333333
//获取学生所有信息请求
export function change(studentName,studentSex, studentTel,studentEMail) {
  return request({
    url: '/student/grxxxg',
    method: 'get',
    params: {
      studentName : studentName,
      studentSex : studentSex,
      studentTel : studentTel,
      studentEMail : studentEMail
    }
  })
}

